import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
      {
        path:'/main',
        name:'Main',
        component: ()=> import('../views/Main.vue'),
        children:[
          {
            path: '/eat',
            name: 'Eat',
            component: () => import('../views/Eat.vue')
          },
          {
            path: '/order',
            name: 'Order',
            component: () => import('../views/Order.vue')
          },
          {
            path: '/my',
            name: 'My',
            component: () => import('../views/My.vue')
          },
          
        ]
      },
      {
        path: '/',
        name: 'Shouye',
        // alias:'',
        component: () => import('../views/Shouye.vue')
      },
      {
        path: '/more',
        name: 'More',
        component: () => import('../views/More.vue')
      },
      {
        path: '/menu',
        name: 'Menu',
        component: () => import('../views/Menu.vue')
      },
      {
        // path: '/productdetail/:id/:item',
        path: '/productdetail',

        // path: '/productdetail',
        name: 'Productdetail',
        component: () => import('../views/ProductDetail.vue')
      },
      {
        path: '/login',
        name: 'Login',
        component: () => import('../views/Login.vue')
      },
      {
        path: '/car',
        name: 'Car',
        component: () => import('../views/Car.vue')
      },
      {
        path: '/close',
        name: 'Close',
        component: () => import('../views/Close.vue')
      },
      {
        path: '/address',
        name: 'Address',
        component: () => import('../views/Address.vue')
      },
      {
        path: '/newaddress',
        name: 'Newaddress',
        component: () => import('../views/Newaddress.vue')
      },
      
      {
        path: '/exitLogin',
        name: 'ExitLogin',
        component: () => import('../views/ExitLogin.vue')
      },
      {
        path: '/search',
        name: 'Search',
        component: () => import('../views/Search.vue')
      },
      {
        path: '/remark',
        name: 'Remark',
        component: () => import('../views/Remark.vue')
      },
      {
        path: '/lick',
        name: 'Lick',
        component: () => import('../views/Lick.vue')
      },


      
    ]
  


const router = new VueRouter({
  routes
})

export default router
